﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddSeries.aspx.cs" Inherits="Admin_Product_AddSeries" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <UC:Css ID="cssUc" runat="server" />
    <title>Product Management </title>
    <UC:Js ID="JSUc" runat="server" />
    <script type="text/javascript" src="<%=ResolveUrl("~/admin/js/json2.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/admin/js/AddProduct.js")%>"></script>
</head>
<body class="admin-layout">
    <form name="form1" method="post" id="form1" enctype="multipart/form-data">
    <div class="wrap">
        <UC:HeaderAdmin ID="headerUc" runat="server" />
        <div class="main">
            <div id="left">
            </div>
            <div id="right">
                <div class="breadcrumb">
                    <a href="productList.aspx">产品</a> › 添加系列
                </div>
                <div id="content">
                    <div class="hd">
                        <h1 class="title">
                            添加系列</h1>
                    </div>
                    <div class="bd">
                        <fieldset>
                            <div class="form-item">
                                <label for="title">
                                    名称<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="Name" name="Name" />
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    工作重量<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="WorkWeight" name="WorkWeight" />
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    简短描述<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="ShortDescription  " name="ShortDescription" />
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    描述<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="SDescription" name="SDescription" />
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    优势描述<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="Advantage" name="Advantage" />
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    上传图片<span class="form-required">*</span></label>
                                <div class="con_right">
                                    <a class="btn_upload fl" href="#"><span id="spanButtonPlaceholder"></span></a><b
                                        id="uploadDesc"></b>
                                    <div class="clear">
                                    </div>
                                    <br />
                                    <div id="thumbnails">
                                    </div>
                                </div>
                                <br />
                            </div>
                            <div class="form-item">
                                <input type="button" id="btnSubmit" value="Submit" onclick="AddProduct.seriesSubmit();" />
                                <input type="submit" id="btnBack" value="Back" name="btnBack" />
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
        <UC:FooterAdmin ID="footerUc" runat="server" />
    </div>
    </form>
    <script type="text/javascript" src="<%=ResolveUrl("~/admin/UEditor/third-party/swfupload/swfupload.js")%>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/admin/js/handlers.js")%>"></script>
    <script type="text/javascript">
        var ASPSESSID = "<%=Session.SessionID %>";
        AddProduct.url = '<%=ResolveUrl("~/admin/Ajax/AddSeriesAjax.aspx") %>';
        AddProduct.listUrl = '<%=ResolveUrl("~/admin/Product/SeriesList.aspx") %>';
        var swfImg = new SWFUpload({
            upload_url: '<%=ResolveUrl("~/admin/ajax/ImgSeriesUpload.aspx") %>',
            post_params: {
                "ASPSESSID": ASPSESSID
            },
            file_post_name: "filedata",
            file_size_limit: "5 MB",
            file_types: "*.gif;*.jpeg;*.png;*.jpg",
            file_types_description: "图片",
            file_upload_limit: 5,    // Zero means unlimited

            file_queue_error_handler: fileQueueError,
            file_dialog_complete_handler: fileDialogComplete,

            upload_error_handler: uploadError,
            upload_success_handler: uploadSuccess,
            upload_complete_handler: uploadComplete,

            button_image_url: '<%=ResolveUrl("~/admin/js/XPButtonNoText_72x22.png") %>',
            button_placeholder_id: "spanButtonPlaceholder",
            button_width: 74,
            button_height: 22,
            button_text: '<a href="#" class="btn_common fl">上传图片</a>',
            button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
            button_text_top_padding: 1,
            button_text_left_padding: 5,

            flash_url: '<%=ResolveUrl("~/admin/UEditor/third-party/swfupload/swfupload.swf") %>',

            custom_settings: {
                upload_target: "divFileProgressContainer"
            },
            debug: false
        });
    </script>
</body>
</html>
